// 获取当前实例公共属性和方法
import { ComponentInternalInstance, getCurrentInstance } from 'vue';
export const useCurrentInstance = () => {
  const { appContext } = getCurrentInstance() as ComponentInternalInstance;
  return appContext.config.globalProperties;
}